﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<CollegeWebsite.Models.Contact>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Contact List</h2>

    <% foreach (var item in Model) { %>
    <table class="datatable" style="width: 100%">
        <tr>
            <td style="width: 50%; vertical-align: top; color:cornflowerblue; font-weight: normal; font-size:16px">
                <%= Html.Encode(item.ContactName) %>
            </td>
            <td>
                Address: <strong> <%= Html.Encode(item.ContactAddress) %></strong>
            <br/>
                Phone: <strong> <%= Html.Encode(item.ContactPhone) %></strong>
                 <br/>
                Email: <strong> <a href="mailto://<%= Html.Encode(item.ContactEmail) %>" > <%= Html.Encode(item.ContactEmail) %></a></strong>
                 <br/>
                Fax: <strong> <%= Html.Encode(item.ContactFax) %></strong>
                      <br/>
            </td>
           
        </tr>
    </table>
    <hr/>
    <% } %>

    



</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptIncludePlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="HeaderContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="MenuContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content6" ContentPlaceHolderID="Sidebar1ContentPlaceHolder" runat="server">
</asp:Content>

